package cn.wolfcdoe.audit.service;

import java.io.InputStream;
import java.util.List;
import cn.wolfcdoe.audit.domain.AudCarPackage;
import cn.wolfcdoe.audit.dto.AudCarPackageDTO;
import cn.wolfcdoe.audit.dto.AudedCarPackageDTO;
import cn.wolfcdoe.audit.vo.TaskHistoryVo;

/**
 * 套餐审核Service接口
 * 
 * @author zhuo
 * @date 2023-04-17
 */
public interface IAudCarPackageService 
{
    /**
     * 查询套餐审核
     * 
     * @param id 套餐审核主键
     * @return 套餐审核
     */
    public AudCarPackage selectAudCarPackageById(Long id);

    /**
     * 查询套餐审核列表
     * 
     * @param audCarPackage 套餐审核
     * @return 套餐审核集合
     */
    public List<AudCarPackage> selectAudCarPackageList(AudCarPackage audCarPackage);

    /**
     * 新增套餐审核
     * 
     * @param audCarPackage 套餐审核
     * @return 结果
     */
    public int insertAudCarPackage(AudCarPackage audCarPackage);

    /**
     * 修改套餐审核
     * 
     * @param audCarPackage 套餐审核
     * @return 结果
     */
    public int updateAudCarPackage(AudCarPackage audCarPackage);

    /**
     * 批量删除套餐审核
     * 
     * @param ids 需要删除的套餐审核主键集合
     * @return 结果
     */
    public int deleteAudCarPackageByIds(Long[] ids);

    /**
     * 删除套餐审核信息
     * 
     * @param id 套餐审核主键
     * @return 结果
     */
    public int deleteAudCarPackageById(Long id);

    /**
     * 发起审核
     * @param audCarPackageDTO
     * @return
     */
    int serviceItemStartAudit(AudCarPackageDTO audCarPackageDTO);

    /**
     * 查询代办
     * @return
     */
    List<AudCarPackage> listToDoCarPackage();

    /**
     * 审核
     * @param audedCarPackageDTO
     */
    void auditServiceItem(AudedCarPackageDTO audedCarPackageDTO);

    /**
     * 查看流程图节点
     * @param instanceId
     * @return
     */
    InputStream getInputStream(String instanceId);

    /**
     * 我的已办
     * @return
     */
    List<AudCarPackage> listDoneCarPackage();

    /**
     * 查询历史审核
     * @param instanceId
     * @return
     */
    List<TaskHistoryVo> queryAuditHistories(String instanceId);

    /**
     * 撤销流程实例
     * @param instanceId
     */
    void cancelCarPackage(String instanceId);
}
